package com.zmn.oms.persistence.interfaces.masternotice;

import com.zmn.oms.model.entity.masternotice.MasterNoticeHistory;
import com.zmn.oms.model.entity.masternotice.MasterNoticeHistoryQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author rananquan
* @description 针对表【oms_master_notice_history(工程师安全提示记录表)】的数据库操作Mapper
* @createDate 2022-08-02 14:39:57
* @Entity com.zmn.oms.model.entity.masternotice.MasterNoticeHistory
*/
public interface MasterNoticeHistoryDao {

    /**
     * 新增
     * @param masterNoticeHistory
     * @return
     */
    int insert(MasterNoticeHistory masterNoticeHistory);

    /**
     * 根据主键更新
     * @param masterNoticeHistory
     * @return
     */
    int updateByKey(MasterNoticeHistory masterNoticeHistory);


    /**
     * 批量删除
     * @param configIds
     * @return
     */
    int deleteBatch(@Param("configIds") List<Integer> configIds);

    /**
     * 分页查询数据
     * @param query
     * @return
     */
    List<MasterNoticeHistory> listPageByQuery(MasterNoticeHistoryQuery query);

    /**
     * 按条件查询数据，不支持分页
     * @param query
     * @return
     */
    List<MasterNoticeHistory> listByQuery(MasterNoticeHistoryQuery query);
}
